<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<input type="hidden" id="nature_value1" value="<x:out
		select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />"/>
		
		<input type="hidden" id="nature_value2" name="proposal/nature_value" value=""/>


<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="4" class="t_bar2">基本信息</td>
		
	</tr>
	<tr class="li_1">
		<td   align="right" width="20%"><span class="color_red">*</span>团队名称：</td>
		<td  colspan="3">
			<input id="zh_title" name="proposal/zh_title" label="团队名称" type="text" required class="input_css required maxlength:100"  style="width: 650px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/>
			<br/><span class="color_red">(团队名称以“研究方向+创新团队”命名) </span>
		</td>
	</tr>
	<tr class="li_2">
		<td   align="right" width="20%"><span class="color_red">*</span>研究方向：</td>
		<td  width="30%">
			<input  name="proposal/research_direction" label="研究方向" type="text" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/research_direction" />"/>
		</td>
		<td align="right" width="20%"><span class="color_red">*</span>申报领域：</td>
		<td colspan="3">
	       <c:set var="statYear">${statYear}</c:set>
			 <c:if test="${empty statYear}">
			<c:set var="statYear"><x:out select="$xmlData/data/proposal/stat_year" /></c:set>
				</c:if>
			 <c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
			 <%--
			<c:set var="domain_value"><x:out select="$xmlData/data/proposal/domain_value" /></c:set>
			<cpt:checkbox key="grant_domain" name="domain" repeatColumn="4"  sqlParamVal="{'grant_code':'${grantCode}'}"></cpt:checkbox>
			<input type="hidden" name="proposal/domain_value" class="required"  value="${domain_value}" label="申报领域">
			<input type="hidden" name="proposal/domain_name" value="<x:out select="$xmlData/data/proposal/domain_name" />"> --%>
			
			<c:set var="sub"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>
			<c:set var="domain">{'id':'<x:out select="$xmlData/data/proposal/domain_value" />','name':'<x:out select="$xmlData/data/proposal/domain_name" />'}</c:set>
          	<cpt:tree key="domain1" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${domain}"  label="申报领域"
          		id="domain" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue3" sqlParamVal="{grant_code:	${sub},stat_year:${statYear}}"/>
	        <input id="domain_value" type="hidden" name="proposal/domain_value" class="required" label="申报领域" value="<x:out select="$xmlData/data/proposal/domain_value" />"/>
            <input id="domain_name" type="hidden" name="proposal/domain_name"  value="<x:out select="$xmlData/data/proposal/domain_name" />"/>
	</td>
	</tr>
	<tr class="li_1">
	<td align="right"><span class="color_red">*</span>学科名称：</td>
    <td >
          	<c:set var="subject">{'id':'<x:out select="$xmlData/data/proposal/subject_code" />','name':'<x:out select="$xmlData/data/proposal/subject_name" />'}</c:set>
          	<cpt:tree key="medically" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${subject}"  label="学科名称"
          		id="subject" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="subject_code" type="hidden" name="proposal/subject_code" class="required" label="学科名称" value="<x:out select="$xmlData/data/proposal/subject_code" />"/>
            <input id="subject_name" type="hidden" name="proposal/subject_name"  value="<x:out select="$xmlData/data/proposal/subject_name" />"/>
   </td>
   <td align="right"><span class="color_red">*</span>推荐单位：</td>
		<td >
			<c:set var="recomend_org"><x:out select="$xmlData/data/proposal/recomend_org_value" /></c:set>
			<c:set var="sqOrgCode"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/></c:set>
			<cpt:select id="recomend_org" sqlParamVal="{currentorgcode:${sqOrgCode }}"  key="proposal_tjbm"  value="${recomend_org}" onChange="initControlValue(this.id);" style="width:95%"></cpt:select>
			<input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value" class="required" value="${recomend_org}" label="推荐单位">
			<input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
		</td>
	</tr>
	<tr class="li_2">
	<td  align="right" ><span class="color_red">*</span>本期建设开始时间：</td>
		<td >
			<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="本期建设开始时间" ></cpt:date> 
		</td>
		<td  align="right" ><span class="color_red">*</span>本期建设结束时间：</td>
		<td>
			<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
			<cpt:date id="end_date" name="proposal/end_date" className="required date" label="本期建设结束时间"  value="${end_date}" ></cpt:date> 
		</td>
	</tr>
	<tr class="li_1">
	    <td  align="right"  width="20%"><span class="color_red">*</span>申报日期：</td>
		<td colspan="3">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	</table>
	
	<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo1" cellspacing="1">
	<tr><td class="t_bar2" colspan="4">1、组成单位基本情况</td></tr>
	<tr>
	<td   align="right" width="20%"><span class="color_red">*</span>组成单位（家）：</td>
	<td  width="30%">
		<input id="units_num"  name="proposal/units_num" label="组成单位（家）" type="text" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css gray"  disabled style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/units_num" />"/>
	</td>
	<td   align="right" width="20%"><span class="color_red">*</span>其中参与单位（家）：</td>
	<td  width="30%">
		<input  id="join_units_num" name="proposal/join_units_num" label="其中参与单位（家）" type="text" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css gray"  disabled style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/join_units_num" />"/>
	</td>
	</tr>
	</table>
	
	<script type="text/javascript">
		$(document).ready(function(){
			var prp_version = $('#prp_version').text();
			if ( prp_version == '' || prp_version == null )
			{
				$("#units_num").val("1");
				$("#join_units_num").val("0");
			}
			});
		</script>
	
	<div class="t_bar2">
		 列出参与单位
	</div>
	<table  id="tblUnits" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center" rowspan="2" width="7%">选择</th>
						<th class="TblHead" align="center" rowspan="2" width="7%">序号</th>
						<th class="TblHead" align="center" rowspan="2" width="71%">单位名称</th>
						<th class="TblHead" align="center" rowspan="2" width="15%">单位性质</th>
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">
							<input type="radio" class="radiobutton" name="selUnits" >
						</td>
						<td align="center"> 
							<span name="units|unit[0]@seq_no" >[index]</span> 
						</td>
						<td align="left"> 
							<input type="text" name="units|unit[0]|unit_name" class="input_css required maxlength:100" maxlength="100" style="width: 90%;" label="单位名称"/>
						</td>
						<td align="center"> 
							 <cpt:select id="unit_type[index]" key="unit_type" style="width: 80%;" name="unit_type" onChange="initControlValue(this.id);"></cpt:select>
							 <input type="hidden" name="units|unit[0]|unit_type_value"  value="" label="单位性质"  class="required"/>
							 <input type="hidden" name="units|unit[0]|unit_type_name" value="" />
						</td>
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/units/unit" var="unit">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center"> 
							<input type="radio" class="radiobutton" name="selUnits" >
						</td>
						<td align="center">
							<span   name="units/unit[${flag}${index}]@seq_no" ><x:out select="$unit/@seq_no"/></span> 
						</td>
						<td align="left"> 
							<input type="text" name="units/unit[${flag}${index}]/unit_name" class="input_css required maxlength:100" maxlength="100" style="width: 90%;" label="单位名称" value="<x:out select="$unit/unit_name"/>"/>
						</td>
						<td align="center"> 
							<c:set var="unit_type_value"><x:out select="$unit/unit_type_value"/></c:set>
							 <cpt:select id="unit_type${index }" key="unit_type" name="unit_type" style="width: 80%;" value="${unit_type_value }" onChange="initControlValue(this.id);"></cpt:select>
							 <input type="hidden" name="units/unit[${flag}${index}]/unit_type_value" value="${unit_type_value }" label="单位性质"  class="required"/>
							 <input type="hidden" name="units/unit[${flag}${index}]/unit_type_name" value="<x:out select="$unit/unit_type_name"/>" />
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					</tbody>
					</table>
					
					<table width="98%" align="center">
						<tr ><td>
						<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblUnits',99,'参与单位信息最多只能填写99条')){addNewRow('tblUnits');setOrgNum();}try{top.resizeFrame();}catch(e){};">
						<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblUnits','selUnits')">
						<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblUnits','selUnits')">
						<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblUnits','参与单位信息');setOrgNum();">
						</td></tr>
					</table>
					
					<script type="text/javascript">
							$(document).ready(function(){
								setTimeout('showOrHideOrgInfo($("#unit_type_value").val())',500);
							});
							
							function showOrHideOrgInfo(value){
								
								var nature_value1=$('#nature_value1').val();
								if ( value == 2 || value == 3)
								{
									//选择企业或者科研院所的那块东西开放填写
									//事业单位
									if(nature_value1.substring(0,1)!='A'){
										$('#product_last_3_year1').show();
										$('#product_last_3_year').hide();
										$('#lead_org_guarantee1').show();
										$('#lead_org_guarantee').hide();
										$('#nature_value2').val("B");
										$('#show_year3_tipInfo').val("2");
										$('#show_yanfa_tipInfo').val("2");
									}else{
										$('#product_last_3_year').show();
										$('#product_last_3_year1').hide();
										$('#lead_org_guarantee').show();
										$('#lead_org_guarantee1').hide();
										$('#nature_value2').val("A");
										$('#show_year3_tipInfo').val("1");
										$('#show_yanfa_tipInfo').val("1");
									}
									$('#orgInfo').show();
								}else{
									$('#show_year3_tipInfo').val("1");
									$('#show_yanfa_tipInfo').val("1");
									$('#orgInfo').hide();
								}
								
								
							}
					</script>
	
	
					<table class="t_css" width="100%" border="0" cellpadding="0"  cellspacing="1" id="leadOrg">
					<tr><td class="t_bar2" colspan="4">牵头单位信息
					<input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
					<input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
					<input type="hidden" name="organizations/organization[0]/org_code" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" ></td></tr>
					<input type="hidden" id="show_year3_tipInfo" value="1" >
					<input type="hidden" id="show_yanfa_tipInfo" value="1" >
					<tr>
					<td width="20%" align="right">单位名称：</td>
					<td colspan="1"><span name="organizations/organization[0]/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" /> </span></td>
					<td width="20%" align="right"><span class="color_red">*</span>单位性质：</td>
					<td colspan="1">
						<%-- <span name="organizations/organization[0]/nature_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" /></span> --%>
							<c:set var="unit_type_value"><x:out select="$xmlData/data/proposal/organization/unit_type_value" /></c:set>
							 <cpt:select id="unit_type" key="unit_type" name="unit_type" style="width: 80px;" value="${unit_type_value }" onChange="showOrHideOrgInfo(this.value);"></cpt:select>
							 <input type="hidden" id="unit_type_value" name="proposal/organization/unit_type_value" value="${unit_type_value }" label="单位性质"  class="required"/>
							 <input type="hidden" name="proposal/organization/unit_type_name" value="<x:out select="$xmlData/data/proposal/organization/unit_type_name" />" />
					</td>
					</tr>
					<tr>
					<td align="right" width="20%">单位法人：</td>
					<td width="30%">
					<input type="hidden" name="organization_persons/person[01]@type" value="faren">
					<span name="organization_persons/person[01]/cname"><x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname"/></span>
					</td>
					<td align="right" width="20%">注册类型：</td>
					<td width="30%"><span name="organizations/organization[0]/nature_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" /></span>
					<input type="hidden" name="organizations/organization[0]/nature_value"  value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />"/>
					</td>
					</tr>
					<tr>
					<td width="20%" align="right">单位特性：</td>
					<td colspan="3"><span name="organizations/organization[0]/chk_characteristic_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/chk_characteristic_name" /></span></td>
					</tr>
					<tr>
					<td align="right">单位地址：</td>
					<td>
					<span name="organizations/organization[0]/address"> <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/address" /></span>
					</td>
					<td align="right">邮政编码：</td>
					<td><span name="organizations/organization[0]/zip_code"> <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/zip_code" /></span></td>
					</tr>
					</table>
					<!-- *********************************牵头企业或科研院所填写以下内容******************************************** -->
					<div id="orgInfo">
					<div class="t_bar2" align="center">
							牵头企业或科研院所填写以下内容
					</div>
					<table class="t_css" width="100%" border="0" cellpadding="0"  cellspacing="1" id="product_last_3_year" >
						<tr>
							<td class="t_bar2" colspan="6">近3年经营情况</td>
						</tr>
						<tr style="border:1px solid #B7D1E6">
							<th class="TblHead" align="center">年度</th>
							<th class="TblHead" align="center">主营业务收入（万元）</th>
							<th class="TblHead" align="center">利润（万元）</th>
							<th class="TblHead" align="center">纳税总额（万元）</th>
							<th class="TblHead" align="center">资产总额（万元）</th>
							<th class="TblHead" align="center">资产负债率（%）</th>
						</tr>
						<tr align="center">
							<td>${year-3 }年
								<input type="hidden" name="organization/finances/finance[0]@sequence_no" value="2"/>
								<input type="hidden" name="organization/finances/finance[0]@year" value="${year-3 }年"/>
							</td>
							<td>
							 <span name="proposal/main_income1">
								 <x:out select="$xmlData/data/organization/finances/finance[@sequence_no='2']/income_main"/>
						    </span>
							</td>
							<td>
							 <span name="proposal/main_profx1">
								 <x:out select="$xmlData/data/organization/finances/finance[@sequence_no='2']/proft_total"/>
						    </span>
							</td>
							<td>
							 <span name="proposal/fax_total1">
								 <x:out select="$xmlData/data/organization/finances/finance[@sequence_no='2']/fax"/>
						    </span>
							</td>
							<td>
							 <span name="proposal/a1_assets"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='2']/assets"/></span>
							</td>
							<td>
								<input type="hidden" value="<x:out select="$xmlData/data/organization/finances/finance[@sequence_no='2']/liabilities"/>"/> 
								<span name="proposal/p1_property_debt_rate"></span>
							</td>
						</tr>
						<tr align="center">
							<td>${year-2 }年
								<input type="hidden" name="organization/finances/finance[1]@sequence_no" value="3"/>
								<input type="hidden" name="organization/finances/finance[1]@year" value="${year-2 }年"/>
							</td>
							<td>
							 <span name="proposal/main_income2">
								 <x:out select="$xmlData/data/organization/finances/finance[@sequence_no='3']/income_main"/>
						    </span>
							</td>
							<td>
							 <span name="proposal/main_profx2">
								 <x:out select="$xmlData/data/organization/finances/finance[@sequence_no='3']/proft_total"/>
						    </span>
							</td>
							<td>
							 <span name="proposal/fax_total2">
								 <x:out select="$xmlData/data/organization/finances/finance[@sequence_no='3']/fax"/>
						    </span>
							</td>
							<td>
							 <span name="proposal/a2_assets"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='3']/assets"/></span>
							</td>
							<td>
								<input type="hidden" value="<x:out select="$xmlData/data/organization/finances/finance[@sequence_no='3']/liabilities"/>"/> 
								<span name="proposal/p2_property_debt_rate"></span>
							</td>
						</tr>
						<tr align="center">
							<td>${year-1 }年
								<input type="hidden" name="organization/finances/finance[2]@sequence_no" value="5"/>
								<input type="hidden" name="organization/finances/finance[2]@year" value="${year-1 }年"/>
							</td>
							<td>
							 <span name="proposal/main_income3">
								 <x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/income_main"/>
						    </span>
							</td>
							<td>
							 <span name="proposal/main_profx3">
								 <x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/proft_total"/>
						    </span>
							</td>
							<td>
							 <span name="proposal/fax_total3">
								 <x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/fax"/>
						    </span>
							</td>
							<td>
							 <span name="proposal/a3_assets"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/assets"/></span>
							</td>
							<td>
								<input type="hidden" value="<x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/liabilities"/>"/> 
								<span name="proposal/p3_property_debt_rate"></span>
							</td>
						</tr>
					</table>
					
					
					<table class="t_css" width="100%" border="0" cellpadding="0"  cellspacing="1" id="product_last_3_year1" style="display: none;">
						<tr>
							<td class="t_bar2" colspan="6"><span class="color_red">*</span>近3年经营情况</td>
						</tr>
						<tr style="border:1px solid #B7D1E6">
							<th class="TblHead" align="center">年度</th>
							<th class="TblHead" align="center">主营业务收入（万元）</th>
							<th class="TblHead" align="center">利润（万元）</th>
							<th class="TblHead" align="center">纳税总额（万元）</th>
							<th class="TblHead" align="center">资产总额（万元）</th>
							<th class="TblHead" align="center">资产负债率（%）</th>
						</tr>
						<tr align="center">
							<td>${year-3 }年
								<input type="hidden" name="organization/finances/finance[0]@sequence_no" value="1"/>
								<input type="hidden" name="organization/finances/finance[0]@year" value="${year-3 }年"/>
							</td>
							<td>
								<input  name="proposal/main_income11" label="${year-3 }年主营业务收入" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/main_income11" />"/>
							</td>
							<td>
								<input  name="proposal/main_profx11" label="${year-3 }利润" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/main_profx11" />"/>
							</td>
							<td>
							 	<input  name="proposal/fax_total11" label="${year-3 }纳税总额" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/fax_total11" />"/>
							</td>
							<td>
							<!-- 年末资产总额 -->
							 <span name="proposal/a11_assets"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='1']/assets"/></span>
							</td>
							<td>
							<!-- 年末负债总额 -->
								<input type="hidden" value="<x:out select="$xmlData/data/organization/finances/finance[@sequence_no='1']/liabilities"/>"/> 
								<span name="proposal/p11_property_debt_rate"></span>
							</td>
						</tr>
						<tr align="center">
							<td>${year-2 }年
								<input type="hidden" name="organization/finances/finance[1]@sequence_no" value="2"/>
								<input type="hidden" name="organization/finances/finance[1]@year" value="${year-2 }年"/>
							</td>
							<td>
								<input  name="proposal/main_income22" label="${year-2 }年主营业务收入" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/main_income22" />"/>
							</td>
							<td>
								<input  name="proposal/main_profx22" label="${year-2 }利润" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/main_profx22" />"/>
							</td>
							<td>
							 	<input  name="proposal/fax_total22" label="${year-2 }纳税总额" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/fax_total22" />"/>
							</td>
							<td>
							 <span name="proposal/a22_assets"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='2']/assets"/></span>
							</td>
							<td>
								<input type="hidden" value="<x:out select="$xmlData/data/organization/finances/finance[@sequence_no='2']/liabilities"/>"/> 
								<span name="proposal/p22_property_debt_rate"></span>
							</td>
						</tr>
						<tr align="center">
							<td>${year-1 }年
								<input type="hidden" name="organization/finances/finance[2]@sequence_no" value="5"/>
								<input type="hidden" name="organization/finances/finance[2]@year" value="${year-1 }年"/>
							</td>
							<td>
								<input  name="proposal/main_income33" label="${year-1 }年主营业务收入" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/main_income33" />"/>
							</td>
							<td>
								<input  name="proposal/main_profx33" label="${year-1 }利润" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/main_profx33" />"/>
							</td>
							<td>
							 	<input  name="proposal/fax_total33" label="${year-1 }纳税总额" type="text" style="text-align: right;" onfocus="InitInput.setNumber(this,7,4,2)" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/fax_total33" />"/>
							</td>
							<td>
							 <span name="proposal/a33_assets"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='4']/assets"/></span>
							</td>
							<td>
								<input type="hidden" value="<x:out select="$xmlData/data/organization/finances/finance[@sequence_no='4']/liabilities"/>"/> 
								<span name="proposal/p33_property_debt_rate"></span>
							</td>
						</tr>
					</table>
					
						<script type="text/javascript">
						<!--计算资产负债率-->
							$(document).ready(function(){
								$("#product_last_3_year").find("span[name$='property_debt_rate']").each(function(){

									var liabilities = $(this).prev().val().replace(/,/g,'');
									var assets = $(this).parent().prev().find("span[name$='assets']").text().replace(/,/g,'');



									if ( assets == 0 ||  assets == 0.00 ){
										$(this).text("0.00");
									} 
									if (!isNaN(liabilities) && !isNaN(assets) && assets != 0 &&  assets != 0.00 ){
										$(this).text(formatVal(liabilities*100/assets));
									} 
								});
								$("#product_last_3_year1").find("span[name$='property_debt_rate']").each(function(){
								
									var liabilities = $(this).prev().val().replace(/,/g,'');
									var assets = $(this).parent().prev().find("span[name$='assets']").text().replace(/,/g,'');
									if ( assets == 0 ||  assets == 0.00 ){
										$(this).text("0.00");
									} 
									if (!isNaN(liabilities) && !isNaN(assets) && assets != 0 &&  assets != 0.00 ){
										$(this).text(formatVal(liabilities*100/assets));
									} 
								});
							});
						</script>
						
						
	 <div class="t_bar2">
		自主品牌创建情况  
	</div>
	<table cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
		<tr>
			<td>
				中国驰名商标：<input type="text" id="country_amt"  name="brands/country_amt" value='<x:out select="$xmlData/data/brands/country_amt"/>' class="input_css gray" disabled  style="width: 80px;text-align: right;"/>个，
				中国名牌产品：<input type="text" id="country_fms_amt"  name="brands/country_fms_amt" value='<x:out select="$xmlData/data/brands/country_fms_amt"/>' class="input_css gray" disabled  style="width: 80px;text-align: right;"/>个，
				国家重点新产品：<input type="text" id="country_key_amt"  name="brands/country_key_amt" value='<x:out select="$xmlData/data/brands/country_key_amt"/>' class="input_css gray" disabled  style="width: 80px;text-align: right;"/>个，
				安徽省名牌产品：<input type="text" id="province_amt"  name="brands/province_amt" value='<x:out select="$xmlData/data/brands/province_amt"/>' class="input_css gray" disabled  style="width: 80px;text-align: right;"/>个
			</td>
		</tr>
	</table>
	<table  id="tblBrands" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
			<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center" rowspan="2" width="7%">选择</th>
						<th class="TblHead" align="center" rowspan="2" width="7%">序号</th>
						<th class="TblHead" align="center" rowspan="2" width="36%">名称</th>
						<th class="TblHead" align="center" rowspan="2" width="15%">类别</th>
						<th class="TblHead" align="center" rowspan="2" width="15%">评定时间</th>
						<th class="TblHead" align="center" rowspan="2" width="20%">评定部门</th>
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">
							<input type="radio" class="radiobutton" name="selBrands" >
						</td>
						<td align="center"> 
							<span name="brands|brand[0]@seq_no" >[index]</span> 
						</td>
						<td align="left"> 
							<input type="text" name="brands|brand[0]|brand_name" class="input_css required maxlength:100" maxlength="100" style="width: 90%;" label="名称"/>
						</td>
						<td align="center"> 
							 <cpt:select id="brand_type[index]" key="brand_type" style="width: 80%;" name="brand_type" onChange="initControlValue(this.id);setTimeout(countBrandType,100);"></cpt:select>
							 <input type="hidden" name="brands|brand[0]|brand_type_value"  value="" label="类别"  class="required"/>
							 <input type="hidden" name="brands|brand[0]|brand_type_name" value="" />
						</td>
						<td align="center"> 
								<input id="brand_date_[0]"  name="brands|brand[0]|date" value="" label="评定时间"  style="width: 85px;" class="input_css required date" />
						</td>
						<td align="center"> 
								<input  name="brands|brand[0]|dept" value="" label="评定部门"  style="width: 80%;" class="input_css required " />
						</td>
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/brands/brand" var="brand">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center"> 
							<input type="radio" class="radiobutton" name="selBrands" >
						</td>
						<td align="center">
							<span   name="brands/brand[${flag}${index}]@seq_no" ><x:out select="$brand/@seq_no"/></span> 
						</td>
						<td align="left"> 
							<input type="text" name="brands/brand[${flag}${index}]/brand_name" class="input_css required maxlength:100" maxlength="100" style="width: 90%;" label="名称" value="<x:out select="$brand/brand_name"/>"/>
						</td>
						<td align="center"> 
							<c:set var="brand_type_value"><x:out select="$brand/brand_type_value"/></c:set>
							 <cpt:select id="brand_type${index }" key="brand_type" name="brand_type" style="width: 80%;" value="${brand_type_value }" onChange="initControlValue(this.id);setTimeout(countBrandType,100);"></cpt:select>
							 <input type="hidden" name="brands/brand[${flag}${index}]/brand_type_value" value="${brand_type_value }" label="类别"  class="required"/>
							 <input type="hidden" name="brands/brand[${flag}${index}]/brand_type_name" value="<x:out select="$brand/brand_type_name"/>" />
						</td>
						<td align="center"> 
								<input id="brand_date_[${flag}${index}]"  name="brands/brand[${flag}${index}]/date" value="<x:out select="$brand/date"/>" label="评定时间"  style="width: 85px;" class="input_css required date" />
						</td>
						<td align="center"> 
								<input  name="brands/brand[${flag}${index}]/dept" value="<x:out select="$brand/dept"/>" label="评定部门"  style="width: 80%;" class="input_css required " />
						</td>
					</tr>
					
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
						</tbody>	
					</table>
					<script type="text/javascript">
						showAllDateTag('tblBrands');
						$(document).ready(function(){
							var prp_version = $('#prp_version').text();
							if ( prp_version == '' || prp_version == null )
								countBrandType();
							});
						// 计算品牌种类
						function countBrandType(){
							var country_amt = 0 ;
							var country_fms_amt = 0 ;
							var country_key_amt = 0 ;
							var province_amt = 0 ;
							
							$("#tblBrands").find("tbody>tr:gt(0)").each(function(){
								var brand_type_value = $(this).find("input[name$='brand_type_value']").val();
								if ( brand_type_value == 1)
									{
										country_amt = parseInt(country_amt) + 1;
									}
								if ( brand_type_value == 2)
									{
										country_fms_amt = parseInt(country_fms_amt) + 1;
									}
								if ( brand_type_value == 3)
									{
										country_key_amt = parseInt(country_key_amt) + 1;
									}
								if ( brand_type_value == 4)
									{
										province_amt = parseInt(province_amt) + 1;
									}
							});
							
							$("#country_amt").val(country_amt);
							$("#country_fms_amt").val(country_fms_amt);
							$("#country_key_amt").val(country_key_amt);
							$("#province_amt").val(province_amt);
						}
					</script>
					
					<table width="98%" align="center">
						<tr ><td>
						<input class="button" name="cmdAddbefore" type=button value="添加" onclick="addNewRow('tblBrands');showDateTag('tblBrands');try{top.resizeFrame();}catch(e){};">
						<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblBrands','selBrands')">
						<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblBrands','selBrands')">
						<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblBrands','自主品牌创建情况');countBrandType();">
						</td></tr>
					</table>
					
					 
					 	<div class="t_bar2">
							<span class="color_red">*</span>近3年自主研发产品（技术）情况
						</div>
						<table  id="tblTecSelf" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
								<col width="5%"/>
								<col width="5%"/>
								<col width="10%"/>
								<col width="13%"/>
								<col width="10%"/>
								<col width="10%"/>
								<col width="10%"/>
								<col width="10%"/>
								<col width="10%"/>
								<col width="9%"/>
								<col width="8%"/>
							<thead >
									<tr style="border:1px solid #B7D1E6">
										<th class="TblHead" align="center" rowspan="3" >选择</th>
										<th class="TblHead" align="center" rowspan="3" >序号</th>
										<th class="TblHead" align="center" rowspan="3" >产品（技术）名称</th>
										<th class="TblHead" align="center" colspan="3" >基本信息</th>
										<th class="TblHead" align="center" colspan="5" >经济效益</th>
									</tr>
									<tr style="border:1px solid #B7D1E6">
										<th class="TblHead" align="center" rowspan="2" >立项时间</th>
										<th class="TblHead" align="center" rowspan="2" >研发周期（月）</th>
										<th class="TblHead" align="center" rowspan="2" >企业研发投入（万元）</th>
										<th class="TblHead" align="center" rowspan="2" >销售收入<br/>（万元）</th>
										<th class="TblHead" align="center" rowspan="2" >占年销售比例（%）</th>
										<th class="TblHead" align="center" rowspan="2" >利润<br/>（万元）</th>
										<th class="TblHead" align="center" colspan="2" >市场占有率（%）</th>
									</tr>
									<tr style="border:1px solid #B7D1E6">
										<th class="TblHead" align="center" >国内</th>
										<th class="TblHead" align="center" >国际</th>
									</tr>
							</thead>
							
							<tbody id="tab">
								<tr style="display:none">
									<td align="center">
										<input type="radio" class="radiobutton" name="selTecSelf" >
									</td>
									<td align="center"> 
										<span name="tecselfs|tecself[0]@seq_no" >[index]</span> 
									</td>
									<td align="left"> 
										<input type="text" name="tecselfs|tecself[0]|tecself_name" class="input_css required maxlength:100" maxlength="100" style="width: 85%;" label="产品（技术）名称"/>
									</td>
									<td align="center"> 
										<input id="tecself_date_[0]"  name="tecselfs|tecself[0]|date" value="" label="立项时间"  style="width: 70%;" class="input_css required date" />
									</td>
									<td align="center"> 
										<input  name="tecselfs|tecself[0]|time" value="" label="研发周期"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,9,1,1);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs|tecself[0]|study_input" value="" label="企业研发投入"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,7,4,2);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs|tecself[0]|sale_income" value="" label="销售收入"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,7,4,2);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs|tecself[0]|sale_income_rate" value="" label="占年销售比例"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,9,2,2);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs|tecself[0]|profit" value="" label="利润"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,7,4,2);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs|tecself[0]|market_rate_country" value="" label="国内市场占有率"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,9,2,2);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs|tecself[0]|market_rate_internation" value="" label="国际市场占有率"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,9,2,2);" />
									</td>
								</tr>
								
								
								<c:set value="0" var="index" scope="page"/>
								<x:forEach select="$xmlData/data/tecselfs/tecself" var="tecself">
								
								<c:choose>
									<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
									<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
								</c:choose>
								<tr >
									<td align="center"> 
										<input type="radio" class="radiobutton" name="selTecSelf" >
									</td>
									<td align="center">
										<span   name="tecselfs/tecself[${flag}${index}]@seq_no" ><x:out select="$tecself/@seq_no"/></span> 
									</td>
									<td align="left"> 
										<input type="text" name="tecselfs/tecself[${flag}${index}]/tecself_name" class="input_css required maxlength:100" value="<x:out select="$tecself/tecself_name"/>" maxlength="100" style="width: 85%;" label="产品（技术）名称"/>
									</td>
									<td align="center"> 
										<input id="tecself_date_[${flag}${index}]"  name="tecselfs/tecself[${flag}${index}]/date" value="<x:out select="$tecself/date"/>" label="立项时间"  style="width: 70%;" class="input_css required date" />
									</td>
									<td align="center"> 
										<input  name="tecselfs/tecself[${flag}${index}]/time" value="<x:out select="$tecself/time"/>" label="研发周期"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,9,1,1);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs/tecself[${flag}${index}]/study_input" value="<x:out select="$tecself/study_input"/>" label="企业研发投入"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,7,4,2);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs/tecself[${flag}${index}]/sale_income" value="<x:out select="$tecself/sale_income"/>" label="销售收入"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,7,4,2);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs/tecself[${flag}${index}]/sale_income_rate" value="<x:out select="$tecself/sale_income_rate"/>" label="占年销售比例"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,9,2,2);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs/tecself[${flag}${index}]/profit" value="<x:out select="$tecself/profit"/>" label="利润"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,7,4,2);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs/tecself[${flag}${index}]/market_rate_country" value="<x:out select="$tecself/market_rate_country"/>" label="国内市场占有率"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,9,2,2);" />
									</td>
									<td align="center"> 
										<input  name="tecselfs/tecself[${flag}${index}]/market_rate_internation" value="<x:out select="$tecself/market_rate_internation"/>" label="国际市场占有率"  style="width: 85%;text-align: right;" class="input_css required " onfocus="InitInput.setNumber(this,9,2,2);" />
									</td>
								</tr>
								<c:set value="${index+1}" var="index" scope="page"/>
								</x:forEach>
								</tbody>
							</table>
								<script type="text/javascript">
									showAllDateTag('tblTecSelf');
									/**
									* 增加一行
									* @param tableId表格Id
									* @param radioId
									* @param nNewRowPosition
									* @param startRowIndex
									*/
									function addNewRowDeal(table){
										if (table.attr("id") == "tblTecSelf")
										{
											var maxLinNum=table.find("tr").length-4;//获得行数，减去表头和隐藏行
											var lineNum=""+(maxLinNum+1);
											var addHtml=table.find("tr")[3].innerHTML;//获得隐藏行的html,查找第二行
											addHtml=addHtml.replace(/\[index\]/g,lineNum);
											lineNum = (parseInt(lineNum, 10)-1).toString();//2011.12.13 行下标比行号小1(隐藏行下标[0]，第一行下标[00])
											if (lineNum.length==1)//如果是个位数，前面补0
											lineNum="0"+lineNum;
											addHtml=addHtml.replace(/\[0\]/g,"["+lineNum+"]");//替换html中行号
											addHtml=addHtml.replace(/\|/g,"/");//替换html中节点/的代替符"|"
											table.append("<tr>"+addHtml+"</tr>");//将html增加到最后
												
										}
										else
										{
											var maxLinNum=table.find("tr").length-2;;//获得行数，减去表头和隐藏行
											var lineNum=""+(maxLinNum+1);
											var addHtml=table.find("tr")[1].innerHTML;//获得隐藏行的html,查找第二行
											addHtml=addHtml.replace(/\[index\]/g,lineNum);
											lineNum = (parseInt(lineNum, 10)-1).toString();//2011.12.13 行下标比行号小1(隐藏行下标[0]，第一行下标[00])
											if (lineNum.length==1)//如果是个位数，前面补0
											lineNum="0"+lineNum;
											addHtml=addHtml.replace(/\[0\]/g,"["+lineNum+"]");//替换html中行号
											addHtml=addHtml.replace(/\|/g,"/");//替换html中节点/的代替符"|"
											table.append("<tr>"+addHtml+"</tr>");//将html增加到最后
										} 
									}
									
									/**
									* 上移行
									* @param tblId
									* @returns {Boolean}
									*/
								 	function movePrev(tblId,selName) {
										if (tblId == "tblTecSelf")
										{		
											if (!selName)
												selName = "";
											if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
												scmWarn(irisNotes.prevWarn);
												return false;
											}
											if ($("#" + tblId + " tr").length <= 4)
												return false;
											var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked").parents("tr").first();// 取得被选中的行
											var trPrev = trChecked.prev(); // 取得上一行
											var index = trChecked.get(0).rowIndex; // 获得行号
											if (index <= 4) {// 已到第一行  不能上移
												scmWarn(irisNotes.tabelMoveWarn1);
												return false;
											}
											//trChecked.remove();
											trPrev.before(trChecked);
											trChecked.find(":radio[name*='" + selName + "']").attr("checked", 'true');
											refreshRowINdex(tblId);
										}
										else
										{
											 if (!selName)
												 selName = "";
												 if ($("#" + tblId + " :radio[name*='" + selName + "']:checked").length == 0) {
												 scmWarn(irisNotes.prevWarn);
												 return false;
												 }
												 if ($("#" + tblId + " tr").length <= 2)
												 return false;
												 var trChecked = $("#" + tblId + " :radio[name*='" + selName + "']:checked")
												 .parents("tr").first();// 取得被选中的行
												 var trPrev = trChecked.prev();// 取得上一行
												 var index = trChecked.get(0).rowIndex;// 获得行号
												 if (index <= 2) {// 如果是第一行
												 scmWarn(irisNotes.tabelMoveWarn1);
												 return false;
												 }
												 //trChecked.remove();
												 trPrev.before(trChecked);
												 trChecked.find(":radio[name*='" + selName + "']").attr("checked", 'true');
												 refreshRowINdex(tblId); 
										}
									}	
									
									
									/**
									* 重新计算行号
									* @param tblId
									*/
									
										function refreshRowINdex(tblId) {
											if (tblId == "tblTecSelf")
											{
												//重新计算行号
												$("#" + tblId + " tr").each(
														function() {
															var seq = $(this).get(0).rowIndex;//获得行数
															if (seq > 3) {//如果有行 显示时display行不计入类，故只减1
																seq = seq - 3;
																var seq_no = $(this).find("[name$='seq_no']");
																if (seq_no.is("span"))
																	seq_no.html(seq);
																else
																	seq_no.val(seq);
																
																seq = "" + (seq - 1);
																if (seq.length == 1)
																	seq = "0" + seq;
																//替换相应的name参数的seq
																$(this).find("input,span,textarea,select").each(
																		function() {
																			var name = $(this).attr("name");
																			if (name != null && name != "") {
																				name = name.replace(/\[\d*\]/g, "["
																						+ seq + "]");
																				$(this).attr("name", name);
																			}
																			var id = $(this).attr("id");
																			if (id != null && id != "") {
																				  id=id.replace(/\[\d*\]/g,"["+seq+"]");
																				   $(this).attr("id",id);
																				   id=id.replace(/\d+/g,""+seq+"");
																				   $(this).attr("id",id);
																			}
																			var className = $(this).attr("class");
																			if (className != null
																					&& className != "") {
																				className = className
																						.replace(/\[\d*\]/g, "["
																								+ seq + "]");
																				$(this).attr("class", className);
																			}
																		});
															}
														});
											}
											else
											{
												$("#"+tblId+" tr").each(function(){
													var seq=$(this).get(0).rowIndex;//获得行数
													if(seq>1){//如果有行 显示时display行不计入类，故只减1
													seq=seq-1;
													var seq_no=$(this).find("[name$='seq_no']");
													if(seq_no.is("span"))
													seq_no.html(seq);
													else
													seq_no.val(seq);
													seq=""+(seq-1);
													if(seq.length==1)
													seq="0"+seq;
													//替换相应的name参数的seq
													$(this).find("input,span,textarea,select").each(function(){
													var name=$(this).attr("name");
													if(name!=null&&name!=""){
													name=name.replace(/\[\d*\]/g,"["+seq+"]");
													$(this).attr("name",name);
													}
													var id=$(this).attr("id");
													if(id!=null&&id!=""){
														  id=id.replace(/\[\d*\]/g,"["+seq+"]");
														   $(this).attr("id",id);
														   id=id.replace(/\d+/g,""+seq+"");
														   $(this).attr("id",id);
													}
													var className=$(this).attr("class");
													if(className!=null&&className!=""){
													className=className.replace(/\[\d*\]/g,"["+seq+"]");
													$(this).attr("class",className);
													}
													});
													}
													}
													); 
											}
										}
									
										/**
										 * 限制Table行数 
										 * @param tableId表格id
										 * @param max最大行数
										 * @returns {Boolean}
										 */
										function checkTabLimitRewrite(tableId,max,message)
										{
											var maxLinNum=$("#"+tableId+" tr").length-4;
											
												if(maxLinNum>=max)
												{
													scmWarn(message);
													return false;
												}
											return true;
										}
								</script>
							<table width="98%" align="center">
								<tr ><td>
								<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimitRewrite('tblTecSelf',10,'近3年自主研发产品（技术）情况最多只能填写10条')){addNewRow('tblTecSelf');initControl('tblTecSelf');showDateTag('tblTecSelf');}try{top.resizeFrame();}catch(e){};">
								<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblTecSelf','selTecSelf')">
								<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblTecSelf','selTecSelf')">
								<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblTecSelf','近3年自主研发产品（技术）情况');">
								</td></tr>
							</table>
							
						<div class="t_bar2">
							牵头单位在团队建设中的支撑保障作用
						</div>
						
						
						<table  id="lead_org_guarantee" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
								<col width="20%"/>
								<col width="22%"/>
								<col width="22%"/>
								<col width="26%"/>
								<tr >
									<td align="center" rowspan="4">研发投入情况</td>
									<td align="center" rowspan="1">年份</td>
									<td align="center" rowspan="1">研发经费支出总额（万元）</td>
									<td align="center" rowspan="1">研发经费占销售收入的比例（%）</td>
								</tr>
								<tr align="center">
									<td>${year-3 }年</td>
									<td>	
										 <span name="proposal/y1_yanfa_income"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='2']/yanfa_income"/></span>
									</td>
									<td>
										<input type="hidden" name="proposal/y1_yanfa_income_rate" value="<x:out select="$xmlData/data/organization/finances/finance[@sequence_no='2']/income"/>"/>
										<span name="proposal/y1_yanfa_income_rate">
											
										</span>
									</td>
								</tr>
								<tr align="center">
									<td>${year-2 }年</td>
									<td>	
										 <span name="proposal/y2_yanfa_income"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='3']/yanfa_income"/></span>
									</td>
									<td>
										<input type="hidden" name="proposal/y2_yanfa_income_rate" value="<x:out select="$xmlData/data/organization/finances/finance[@sequence_no='3']/income"/>"/>
										<span name="proposal/y2_yanfa_income_rate">
											
										</span>
									</td>
								</tr>
								<tr align="center">
									<td>${year-1 }年</td>
									<td>	
										 <span name="proposal/y3_yanfa_income"><x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/yanfa_income"/></span>
									</td>
									<td>
										<input type="hidden" name="proposal/y3_yanfa_income_rate" value="<x:out select="$xmlData/data/organization/finances/finance[@sequence_no='5']/income"/>"/>
										<span name="proposal/y3_yanfa_income_rate">
											
										</span>
									</td>
								</tr>
								</table>
								
								<table  id="lead_org_guarantee1" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
								<col width="20%"/>
								<col width="22%"/>
								<col width="22%"/>
								<col width="26%"/>
								<tr >
									<td align="center" rowspan="4"><span class="color_red">*</span>研发投入情况</td>
									<td align="center" rowspan="1">年份</td>
									<td align="center" rowspan="1">研发经费支出总额（万元）</td>
									<td align="center" rowspan="1">研发经费占销售收入的比例（%）</td>
								</tr>
								<tr align="center">
									<td>${year-3 }年</td>
									<td >	
										<input  name="proposal/yanfa_income11" label="${year-3 }年研发经费支出总额" type="text" required class="input_css required" style="text-align:right"  onfocus="InitInput.setNumber(this,7,4,2)"   value="<x:out select="$xmlData/data/proposal/yanfa_income11" />"/>
									</td>
									<td>
										<input  name="proposal/yanfa_income_rate11" label="${year-3 }年研发经费占销售收入的比例" type="text" required class="input_css required" style="text-align: right;" onfocus="InitInput.setNumber(this,7,2,2)"   value="<x:out select="$xmlData/data/proposal/yanfa_income_rate11" />"/>
									</td>
								</tr>
								<tr align="center">
									<td>${year-2 }年</td>
									<td>	
										<input  name="proposal/yanfa_income22" label="${year-2 }年研发经费支出总额" type="text" style="text-align: right;" required class="input_css required" onfocus="InitInput.setNumber(this,7,4,2)"  value="<x:out select="$xmlData/data/proposal/yanfa_income22" />"/>
									</td>
									<td>
										<input  name="proposal/yanfa_income_rate22" label="${year-2 }年研发经费占销售收入的比例" type="text" style="text-align: right;" required class="input_css required" onfocus="InitInput.setNumber(this,7,2,2)"   value="<x:out select="$xmlData/data/proposal/yanfa_income_rate22" />"/>
									</td>
								</tr>
								<tr align="center">
									<td>${year-1 }年</td>
									<td>	
										<input  name="proposal/yanfa_income33" label="${year-1 }年研发经费支出总额" type="text" style="text-align: right;" required class="input_css required" onfocus="InitInput.setNumber(this,7,4,2)"  value="<x:out select="$xmlData/data/proposal/yanfa_income33" />"/>
									</td>
									<td>
										<input  name="proposal/yanfa_income_rate33" label="${year-1 }年研发经费占销售收入的比例" type="text" style="text-align: right;" required class="input_css required" onfocus="InitInput.setNumber(this,7,2,2)"   value="<x:out select="$xmlData/data/proposal/yanfa_income_rate33" />"/>
									</td>
								</tr>
								</table>
								
								<script type="text/javascript">
									$(document).ready(function(){
										$("#lead_org_guarantee").find("span[name$='yanfa_income_rate']").each(function(){
											var income = $(this).prev().val().replace(/,/g,'');
											var yanfa_income = $(this).parent().prev().find("span[name$='yanfa_income']").text().replace(/,/g,'');
											if ( income == 0 ||  yanfa_income == 0.00 ){
												$(this).text("0.00");
											} 
											if (!isNaN(yanfa_income) && !isNaN(income) && income != 0 &&  income != 0.00 ){
												$(this).text(formatVal(yanfa_income*100/income));
											} 
										});
									});
						</script>
								<div id="leaderOrgGuarentee">
								<table  id="leadorg_summary" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
									<col width="20%"/>
									<col width="22%"/>
									<col width="22%"/>
									<col width="26%"/>
								<tr>
									<td>
										<span class="color_red">*</span>技术创新硬件基础情况（科研设施、技术装备、实验条件等，限500字）
									</td>
									<td colspan="3">
										<textarea rows="5" style="width: 600px;"  class="input_textarea required  maxlength:500"   name="proposal/leadorg/summary1" 
										 label="技术创新硬件基础情况"><x:out select="$xmlData/data/proposal/leadorg/summary1"/></textarea>
		   							<input type='hidden' name='proposal/leadorg/summary1_hidden' id='proposal/leadorg/summary1_hidden' value=''>
									</td>
								</tr>
								</table>
								
								<table  id="leadorg_persons" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
									<col width="20%"/>
									<col width="22%"/>
									<col width="22%"/>
									<col width="26%"/>
									<tr >
										<td align="left" rowspan="4">
											<span class="color_red">*</span>为创新团队技术创新活动提供配套支持服务的人才情况
										</td>
										<td align="center" rowspan="1"> </td>
										<td align="center" rowspan="1">人数</td>
										<td align="center" rowspan="1">占全体职工人数的比例（%）</td>
									</tr>
								<tr align="center">
									<td>
										专业技术人员
									</td>
									<td>
										<%-- <input type="hidden" name="organization_persons/people_count_total" value="<x:out select="$xmlData/data/organization_persons/people_count_total"/>" /> --%>
									 	<input name="proposal/leadorg/professionals" class="input_css required " value="<x:out select="$xmlData/data/proposal/leadorg/professionals"/>"
									 	 label="专业技术人员人数" style="width: 80%;text-align: right;" onfocus="InitInput.setNumber(this, 7, 0,0);" />
									</td>
									<td>
										<%-- <span name="proposal/leadorg/professionals_rate">
											<x:out select="$xmlData/data/proposal/leadorg/professionals_rate"/>
										</span> --%>
										
										<input name="proposal/leadorg/professionals_rate" class="input_css required " value="<x:out select="$xmlData/data/proposal/leadorg/professionals_rate"/>"
									 	 label="专业技术人员占全体职工人数的比例" style="width: 80%;text-align: right;" onfocus="InitInput.setNumber(this, 7, 2,2);" />
									</td>
								</tr>
								<tr align="center">
									<td>
										技能人才
									</td>
									<td>
										<%-- <input type="hidden" name="organization_persons/people_count_total" value="<x:out select="$xmlData/data/organization_persons/people_count_total"/>" /> --%>
									 	<input name="proposal/leadorg/skills" class="input_css required " value="<x:out select="$xmlData/data/proposal/leadorg/skills"/>"
									 	 label="技能人才人数" style="width: 80%;text-align: right;" onfocus="InitInput.setNumber(this, 7, 0,0);" />
									</td>
									<td>
										<%-- <span name="proposal/leadorg/skills_rate">
											<x:out select="$xmlData/data/proposal/leadorg/skills_rate"/>
										</span> --%>
										<input name="proposal/leadorg/skills_rate" class="input_css required " value="<x:out select="$xmlData/data/proposal/leadorg/skills_rate"/>"
									 	 label="技能人才占全体职工人数的比例" style="width: 80%;text-align: right;" onfocus="InitInput.setNumber(this, 7, 2,2);" />
									</td>
								</tr>
								<tr align="center">
									<td>
										产品售后服务人员
									</td>
									<td>
										<%-- <input type="hidden" name="organization_persons/people_count_total" value="<x:out select="$xmlData/data/organization_persons/people_count_total"/>" /> --%>
									 	<input name="proposal/leadorg/services" class="input_css required " value="<x:out select="$xmlData/data/proposal/leadorg/services"/>"
									 	 label="产品售后服务人员人数" style="width: 80%;text-align: right;" onfocus="InitInput.setNumber(this, 7, 0,0);" />
									</td>
									<td>
										<%-- <span name="proposal/leadorg/services_rate">
											<x:out select="$xmlData/data/proposal/leadorg/services_rate"/>
										</span> --%>
										<input name="proposal/leadorg/services_rate" class="input_css required " value="<x:out select="$xmlData/data/proposal/leadorg/services_rate"/>"
									 	 label="产品售后服务人员占全体职工人数的比例" style="width: 80%;text-align: right;" onfocus="InitInput.setNumber(this, 7, 2,2);" />
									</td>
								</tr>
						</table>
						
						<!-- <script type="text/javascript">
							
							 function countPersonRate(obj){
									var people_count_total = $(obj).prev().val();
									var professionals = $(obj).val();
									if ( people_count_total == 0 ||  people_count_total == 0.00 ){
										$(obj).parent().next().find("span").text("0.00");
									} 
									if (!isNaN(professionals) && !isNaN(people_count_total) && people_count_total != 0 &&  people_count_total != 0.00 ){
										$(obj).parent().next().find("span").text(formatVal(professionals*100/people_count_total));
									} 
							}
							 
							 //若单位信息人员总数更新,则需重新计算比例
							 $(document).ready(function(){
								 $("#leadorg_persons").find("input[name$='professionals'],input[name$='skills'],input[name$='services']").each(function(){ countPersonRate(this); });
							 });
						</script> -->
						
						<table  id="leadorg_summary2" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
									<col width="20%"/>
									<col width="22%"/>
									<col width="22%"/>
									<col width="26%"/>
								<tr>
									<td>
										<span class="color_red">*</span>对外项目合作交流情况（国际合作、产学研合作项目等，限500字）
									</td>
									<td colspan="3">
										<textarea rows="5" style="width: 600px;"  class="input_textarea required  maxlength:500"   name="proposal/leadorg/summary2" 
										 label="对外项目合作交流情况"><x:out select="$xmlData/data/proposal/leadorg/summary2"/></textarea>
		   							<input type='hidden' name='proposal/leadorg/summary2_hidden' id='proposal/leadorg/summary2_hidden' value=''>
									</td>
								</tr>
						 </table>
						<table  id="leadorg_summary3" cellpadding="0" class="t_css" width="100%" border="0" cellpadding="0" >
									<col width="20%"/>
									<col width="22%"/>
									<col width="22%"/>
									<col width="26%"/>
								<tr>
									<td>
										<span class="color_red">*</span>制度建设情况（重点填写团队绩效考核、薪酬分配、激励保障和人才培养及引进，自主知识产权保护等情况，限500字）
									</td>
									<td colspan="3">
										<textarea rows="5" style="width: 600px;"  class="input_textarea required  maxlength:500"   name="proposal/leadorg/summary3" 
										 label="制度建设情况"><x:out select="$xmlData/data/proposal/leadorg/summary3"/></textarea>
		   							<input type='hidden' name='proposal/leadorg/summary3_hidden' id='proposal/leadorg/summary3_hidden' value=''>
									</td>
								</tr>
						 </table>
						 </div>
					</div>
					<!-- ***************************************************************************** -->
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo2" cellspacing="1">
<tr><td class="t_bar2" colspan="4">联系人信息</td></tr>
<tr>
<td width="20%" align="right"><span class="color_red">*</span>姓名：</td>
<td width="30%"><input name="proposal/contact_psn_cname" label="姓名" type="text" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/></td>
<td align="right" width="20%"><span class="color_red">*</span>手机号码：</td>
<td width="30%"><input  name="proposal/contact_psn_mobile" label="手机号码" type="text" onfocus="InitInput.setNumber(this,11,0,0)" class="input_css required mobile"  value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/></td>
</tr>
<tr>
<td width="20%" align="right"><span class="color_red">*</span>联系电话：</td>
<td><input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> </td>
<td align="right"><span class="color_red">*</span>传真：</td>
<td><input  name="proposal/contact_psn_fax" label="传真" type="text"   class="input_css required "   maxlength="30" value="<x:out select="$xmlData/data/proposal/contact_psn_fax" />"/></td>
</tr>
<tr>
<td width="20%" align="right"><span class="color_red">*</span>电子邮箱：</td>
<td colspan="3"><input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> </td>
</tr>
</table>
		<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo3" cellspacing="1">
			<col width="20%" />
			<col width="15%" />
			<col width="10%" />
			<col width="15%" />
			<col width="20%" />
			<col width="20%" />
		
					<tr><td class="t_bar2" colspan="6">2、人员结构基本情况</td></tr>
					<tr>
					<td  align="right" rowspan="2">总人数：</td>
					<td  rowspan="2"><input  id="psn_total" name="proposal/psn_total" label="总人数" type="text" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css gray valueCompare:psn_total2:psn_total" style="text-align: right;" disabled value="<x:out select="$xmlData/data/proposal/psn_total" />"/>
					<input  id="psn_total_other" name="proposal/psn_total_other" label="博士、硕士、学士、其他学位之和" type="hidden" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css valueEqual:psn_total:psn_total_other"  value="<x:out select="$xmlData/data/proposal/psn_total_other" />"/> </td>
					<td  rowspan="2" align="right"><span class="color_red">*</span>核心成员：</td>
					<td  rowspan="2"><input  id="psn_total2" name="proposal/psn_total2" label="核心成员" type="text" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required valueGreatEqual:psn_total2:psn_age valueGreatEqual:psn_total2:psn_org" style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/psn_total2" />"/>
					</td>
					<td align="right" ><span class="color_red">*</span>45岁以下核心成员：</td>
					<td ><input  id="psn_age" name="proposal/psn_age" label="45岁以下核心成员" type="text"  onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required " style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/psn_age" />"/></td>
					</tr>
					<tr>
						<td align="right"><span class="color_red">*</span>牵头单位核心成员：</td>
						<td>
							<input  id="psn_org" name="proposal/psn_org" label="牵头单位核心成员" type="text"  onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required " style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/psn_org" />"/>
						</td>
					</tr>
					<tr>
					<td  align="right"><span class="color_red">*</span>正高：</td>
					<td colspan="3"><input id="psn_high" name="proposal/psn_high" label="正高" type="text" onchange="countFundInt('','psn_high,psn_high_lie,psn_middle,psn_other','psn_total');" style="text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)"  class="input_css required"  value="<x:out select="$xmlData/data/proposal/psn_high" />"/> </td>
					<td align="right"><span class="color_red">*</span>副高：</td>
					<td><input id="psn_high_lie" name="proposal/psn_high_lie" label="副高" type="text" onchange="countFundInt('','psn_high,psn_high_lie,psn_middle,psn_other','psn_total');" style="text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required "  value="<x:out select="$xmlData/data/proposal/psn_high_lie" />"/></td>
					</tr>
					<tr>
					<td  align="right"><span class="color_red">*</span>中级：</td>
					<td colspan="3"><input id="psn_middle" name="proposal/psn_middle" label="中级" type="text" onchange="countFundInt('','psn_high,psn_high_lie,psn_middle,psn_other','psn_total');" style="text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required"  value="<x:out select="$xmlData/data/proposal/psn_middle" />"/> </td>
					<td align="right"><span class="color_red">*</span>其他：</td>
					<td><input id="psn_other" name="proposal/psn_other" label="其他职称" type="text"  onchange="countFundInt('','psn_high,psn_high_lie,psn_middle,psn_other','psn_total');" style="text-align: right;" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required "  value="<x:out select="$xmlData/data/proposal/psn_other" />"/></td>
					</tr>
					<tr>
					<td  align="right"><span class="color_red">*</span>博士：</td>
					<td colspan="3"><input id="psn_doctor" name="proposal/psn_doctor" label="博士" type="text" onchange="countFundInt('','psn_doctor,psn_master,psn_bachelor,psn_degree_other','psn_total_other');" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required"  style="text-align: right;" value="<x:out select="$xmlData/data/proposal/psn_doctor" />"/> </td>
					<td align="right"><span class="color_red">*</span>硕士：</td>
					<td><input id="psn_master" name="proposal/psn_master" label="硕士" type="text" onchange="countFundInt('','psn_doctor,psn_master,psn_bachelor,psn_degree_other','psn_total_other');" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required " style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/psn_master" />"/></td>
					</tr>
					<tr>
					<td  align="right"><span class="color_red">*</span>学士：</td>
					<td colspan="3"><input id="psn_bachelor" name="proposal/psn_bachelor" label="学士" type="text" onchange="countFundInt('','psn_doctor,psn_master,psn_bachelor,psn_degree_other','psn_total_other');" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/psn_bachelor" />"/> </td>
					<td align="right"><span class="color_red">*</span>其他：</td>
					<td><input id="psn_degree_other" name="proposal/psn_degree_other" label="其他学位" type="text" onchange="countFundInt('','psn_doctor,psn_master,psn_bachelor,psn_degree_other','psn_total_other');"  onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required " style="text-align: right;"  value="<x:out select="$xmlData/data/proposal/psn_degree_other" />"/></td>
					</tr>
					<tr>
					<td  align="right"><span class="color_red">*</span>国家级人才计划入选者：</td>
					<td colspan="3"><input id="psn_country" name="proposal/psn_country" label="国家级人才计划入选者" type="text" onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required valueCompare:psn_country:psn_total" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/psn_country" />"/> </td>
					<td align="right"><span class="color_red">*</span>省级人才计划入选者：</td>
					<td><input id="psn_province" name="proposal/psn_province" label="省级人才计划入选者" type="text"  onfocus="InitInput.setNumber(this,7,0,0)" class="input_css required valueCompare:psn_province:psn_total" style="text-align: right;" value="<x:out select="$xmlData/data/proposal/psn_province" />"/></td>
					</tr>
		</table>
		
   <table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo4" cellspacing="1">
			<col  width="15%"/>
			<col  width="20%"/>
			<col  width="17%"/>
			<col  width="14%"/>
			<col  width="14%"/>
			<col  width="20%"/>
			<tr><td class="t_bar2" colspan="6">3、依托载体情况</td></tr>
			<tr align="center">
				<td>项目类别</td>
				<td>级别（国家级、省级）</td>
				<td>名称</td>
				<td>归属单位</td>
				<td>批准部门</td>
				<td>批准日期</td>
			</tr>
				<tr align="center">
				<td>重点实验室</td>
				<td>
				<label><input type="radio" name="laboratory"  class="do" value="G" label="国家级">国家级</label>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name="laboratory"  class="do" value="S" label="省级" >省级</label>
				<input type="hidden" id='laboratory_value' name="proposal/laboratory_value" class="required"  label="重点实验室级别"  value="<x:out select="$xmlData/data/proposal/laboratory_value" />">	
				<input type="hidden" id='laboratory_name' name="proposal/laboratory_name" value="<x:out select="$xmlData/data/proposal/laboratory_name" />">	
				</td>
				<td><input  name="proposal/laboratory_cname" label="重点实验室名称" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/laboratory_cname" />"/> </td>
				<td><input  name="proposal/laboratory_orgname" label="重点实验室归属单位" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/laboratory_orgname" />"/> </td>
				<td><input  name="proposal/laboratory_unit" label="重点实验室批准部门" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/laboratory_unit" />"/> </td>
				<td>
				<c:set var="laboratory_date"><x:out select="$xmlData/data/proposal/laboratory_date" /></c:set>
				<cpt:date id="laboratory_date" name="proposal/laboratory_date" className="required date" label="重点实验室批准日期"  value="${laboratory_date}"  ></cpt:date> </td>
			</tr>
			<tr align="center">
				<td>重点学科</td>
				<td>
				<label><input type="radio" name="xueke"  class="do" value="G" label="国家级">国家级</label>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name="xueke"  class="do" value="S" label="省级" >省级</label>
				<input type="hidden" id='xueke_value' name="proposal/xueke_value" class="required"  label="重点学科级别"  value="<x:out select="$xmlData/data/proposal/xueke_value" />">	
				<input type="hidden" id='xueke_name' name="proposal/xueke_name" value="<x:out select="$xmlData/data/proposal/xueke_name" />">	
				</td>
				<td><input  name="proposal/xueke_cname" label="重点学科名称" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/xueke_cname" />"/> </td>
				<td><input  name="proposal/xueke_orgname" label="重点学科归属单位" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/xueke_orgname" />"/> </td>
				<td><input  name="proposal/xueke_unit" label="重点学科批准部门" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/xueke_unit" />"/> </td>
				<td>
				<c:set var="xueke_date"><x:out select="$xmlData/data/proposal/xueke_date" /></c:set>
				<cpt:date id="xueke_date" name="proposal/xueke_date" className="required date" label="重点学科批准日期"  value="${xueke_date}" ></cpt:date> </td>
			</tr>
			<tr align="center">
				<td>工程技术研究中心</td>
				<td>
				<label><input type="radio" name="project"  class="do" value="G" label="国家级">国家级</label>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name="project"  class="do" value="S" label="省级" >省级</label>
				<input type="hidden" id='project_value' name="proposal/project_value" class="required"  label="工程技术研究中心级别"  value="<x:out select="$xmlData/data/proposal/project_value" />">	
				<input type="hidden" id='project_name' name="proposal/project_name" value="<x:out select="$xmlData/data/proposal/project_name" />">	
				</td>
				<td><input  name="proposal/project_cname" label="工程技术研究中心名称" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/project_cname" />"/> </td>
				<td><input  name="proposal/project_orgname" label="工程技术研究中心归属单位" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/project_orgname" />"/> </td>
				<td><input  name="proposal/project_unit" label="工程技术研究中心批准部门" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/project_unit" />"/> </td>
				<td>
				<c:set var="project_date"><x:out select="$xmlData/data/proposal/project_date" /></c:set>
				<cpt:date id="project_date" name="proposal/project_date" className="required date" label="工程技术研究中心批准日期"  value="${project_date}" ></cpt:date> </td>
			</tr>
			<tr align="center">
				<td>企业技术中心</td>
				<td>
				<label><input type="radio" name="company"  class="do" value="G" label="国家级">国家级</label>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name="company"  class="do" value="S" label="省级" >省级</label>
				<input type="hidden" id='company_value' name="proposal/company_value" class="required"  label="企业技术中心级别"  value="<x:out select="$xmlData/data/proposal/company_value" />">	
				<input type="hidden" id='company_name' name="proposal/company_name" value="<x:out select="$xmlData/data/proposal/company_name" />">	
				</td>
				<td><input  name="proposal/company_cname" label="企业技术中心名称" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/company_cname" />"/> </td>
				<td><input  name="proposal/company_orgname" label="企业技术中心归属单位" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/company_orgname" />"/> </td>
				<td><input  name="proposal/company_unit" label="企业技术中心批准部门" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/company_unit" />"/> </td>
				<td>
				<c:set var="company_date"><x:out select="$xmlData/data/proposal/company_date" /></c:set>
				<cpt:date id="company_date" name="proposal/company_date" className="required date" label="企业技术中心批准日期"  value="${company_date}" ></cpt:date> </td>
			</tr>
			<tr align="center">
				<td>人文社科研究基地</td>
				<td>
				<label><input type="radio" name="humanity"  class="do" value="G" label="国家级">国家级</label>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name="humanity"  class="do" value="S" label="省级" >省级</label>
				<input type="hidden" id='humanity_value' name="proposal/humanity_value" class="required"  label="人文社科研究基地级别"  value="<x:out select="$xmlData/data/proposal/humanity_value" />">	
				<input type="hidden" id='humanity_name' name="proposal/humanity_name" value="<x:out select="$xmlData/data/proposal/humanity_name" />">	
				</td>
				<td><input  name="proposal/humanity_cname" label="人文社科研究基地名称" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/humanity_cname" />"/> </td>
				<td><input  name="proposal/humanity_orgname" label="人文社科研究基地归属单位" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/humanity_orgname" />"/> </td>
				<td><input  name="proposal/humanity_unit" label="人文社科研究基地批准部门" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/humanity_unit" />"/> </td>
				<td>
				<c:set var="humanity_date"><x:out select="$xmlData/data/proposal/humanity_date" /></c:set>
				<cpt:date id="humanity_date" name="proposal/humanity_date" className="required date" label="人文社科研究基地批准日期"  value="${humanity_date}" ></cpt:date> </td>
			</tr>
			<tr align="center">
				<td>博士后科研流动（工作）站</td>
				<td>
				<label><input type="radio" name="postdoctor"  class="do" value="G" label="国家级">国家级</label>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name="postdoctor"  class="do" value="S" label="省级" >省级</label>
				<input type="hidden" id='postdoctor_value' name="proposal/postdoctor_value" class="required"  label="博士后科研流动（工作）站级别"  value="<x:out select="$xmlData/data/proposal/postdoctor_value" />">	
				<input type="hidden" id='postdoctor_name' name="proposal/postdoctor_name" value="<x:out select="$xmlData/data/proposal/postdoctor_name" />">	
				</td>
				<td><input  name="proposal/postdoctor_cname" label="博士后科研流动（工作）站名称" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/postdoctor_cname" />"/> </td>
				<td><input  name="proposal/postdoctor_orgname" label="博士后科研流动（工作）站归属单位" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/postdoctor_orgname" />"/> </td>
				<td><input  name="proposal/postdoctor_unit" label="博士后科研流动（工作）站批准部门" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/postdoctor_unit" />"/> </td>
				<td>
				<c:set var="postdoctor_date"><x:out select="$xmlData/data/proposal/postdoctor_date" /></c:set>
				<cpt:date id="postdoctor_date" name="proposal/postdoctor_date" className="required date" label="博士后科研流动（工作）站批准日期"  value="${postdoctor_date}" ></cpt:date> </td>
			</tr>
			<tr align="center">
				<td>重点建设工程</td>
				<td>
				<label><input type="radio" name="build"  class="do" value="G" label="国家级">国家级</label>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name="build"  class="do" value="S" label="省级" >省级</label>
				<input type="hidden" id='build_value' name="proposal/build_value" class="required"  label="重点建设工程级别"  value="<x:out select="$xmlData/data/proposal/build_value" />">	
				<input type="hidden" id='build_name' name="proposal/build_name" value="<x:out select="$xmlData/data/proposal/build_name" />">	
				</td>
				<td><input  name="proposal/build_cname" label="重点建设工程名称" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/build_cname" />"/> </td>
				<td><input  name="proposal/build_orgname" label="重点建设工程归属单位" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/build_orgname" />"/> </td>
				<td><input  name="proposal/build_unit" label="重点建设工程批准部门" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/build_unit" />"/> </td>
				<td>
				<c:set var="build_date"><x:out select="$xmlData/data/proposal/build_date" /></c:set>
				<cpt:date id="build_date" name="proposal/build_date" className="required date" label="重点建设工程批准日期"  value="${build_date}" ></cpt:date> </td>
			</tr>
			<tr align="center">
				<td>博士点、硕士点</td>
				<td>
				<label><input type="radio" name="boss"  class="do" value="G" label="国家级">国家级</label>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name="boss"  class="do" value="S" label="省级" >省级</label>
				<input type="hidden" id='boss_value' name="proposal/boss_value" class="required"  label="博士点、硕士点级别"  value="<x:out select="$xmlData/data/proposal/boss_value" />">	
				<input type="hidden" id='boss_name' name="proposal/boss_name" value="<x:out select="$xmlData/data/proposal/boss_name" />">	
				</td>
				<td><input  name="proposal/boss_cname" label="博士点、硕士点名称" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/boss_cname" />"/> </td>
				<td><input  name="proposal/boss_orgname" label="博士点、硕士点归属单位" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/boss_orgname" />"/> </td>
				<td><input  name="proposal/boss_unit" label="博士点、硕士点批准部门" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/boss_unit" />"/> </td>
				<td>
				<c:set var="boss_date"><x:out select="$xmlData/data/proposal/boss_date" /></c:set>
				<cpt:date id="boss_date" name="proposal/boss_date" className="required date" label="博士点、硕士点批准日期"  value="${boss_date}" ></cpt:date> </td>
			</tr>
			<tr align="center">
				<td>知名品牌（驰名商标）</td>
				<td>
				<label><input type="radio" name="brand"  class="do" value="G" label="国家级">国家级</label>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name="brand"  class="do" value="S" label="省级" >省级</label>
				<input type="hidden" id='brand_value' name="proposal/brand_value" class="required"  label="知名品牌（驰名商标）级别"  value="<x:out select="$xmlData/data/proposal/brand_value" />">	
				<input type="hidden" id='brand_name' name="proposal/brand_name" value="<x:out select="$xmlData/data/proposal/brand_name" />">	
				</td>
				<td><input  name="proposal/brand_cname" label="知名品牌（驰名商标）名称" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/brand_cname" />"/> </td>
				<td><input  name="proposal/brand_orgname" label="知名品牌（驰名商标）归属单位" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/brand_orgname" />"/> </td>
				<td><input  name="proposal/brand_unit" label="知名品牌（驰名商标）批准部门" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/brand_unit" />"/> </td>
				<td>
				<c:set var="brand_date"><x:out select="$xmlData/data/proposal/brand_date" /></c:set>
				<cpt:date id="brand_date" name="proposal/brand_date" className="required date" label="知名品牌（驰名商标）批准日期"  value="${brand_date}" ></cpt:date> </td>
			</tr>
			<tr align="center">
				<td>其他创新载体</td>
				<td>
				<label><input type="radio" name="carrier"  class="do" value="G" label="国家级">国家级</label>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<label><input type="radio" name="carrier"  class="do" value="S" label="省级" >省级</label>
				<input type="hidden" id='carrier_value' name="proposal/carrier_value" class="required"  label="其他创新载体级别"  value="<x:out select="$xmlData/data/proposal/carrier_value" />">	
				<input type="hidden" id='carrier_name' name="proposal/carrier_name" value="<x:out select="$xmlData/data/proposal/carrier_name" />">	
				</td>
				<td><input  name="proposal/carrier_cname" label="其他创新载体名称" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/carrier_cname" />"/> </td>
				<td><input  name="proposal/carrier_orgname" label="其他创新载体归属单位" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/carrier_orgname" />"/> </td>
				<td><input  name="proposal/carrier_unit" label="其他创新载体批准部门" type="text" maxlength="50" class="input_css required"  value="<x:out select="$xmlData/data/proposal/carrier_unit" />"/> </td>
				<td>
				<c:set var="carrier_date"><x:out select="$xmlData/data/proposal/carrier_date" /></c:set>
				<cpt:date id="carrier_date" name="proposal/carrier_date" className="required date" label="其他创新载体批准日期"  value="${carrier_date}" ></cpt:date> </td>
			</tr>
</table>
<br/>
<div class="t_bar"><span class="color_red">*</span>团队基本情况综述。包括团队形成背景、团队成员合作意愿及方式、运行机制，团队结构及科研条件建设情况等。（字数控制在1000字以内）</div>
	 <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="goal_summary">
      <tr class="li_2">
          <td>
			<textarea rows="10" cols="150"  class="input_textarea required  maxlength:1000"   name='proposal/goal/summary1'  label="团队基本情况综述"><x:out select="$xmlData/data/proposal/goal/summary1"/></textarea>
		   <input type='hidden' name='proposal/goal/summary1_hidden' id='proposal/goal/summary1_hidden' value=''>
		  </td>
      </tr>
    </table>
<script type="text/javascript">

function setOrgNum(){
	var total = 0;
	total = 	$("#tblUnits>tbody>tr").length - 1;
	$("#units_num").val(total+1);
	$("#join_units_num").val(total );
}

function countFundInt(idStart, countStr, totalStr) {
	var indexs = countStr.split(",");
	var count = 0;
	for ( var i = 0; i < indexs.length; i++) {
		var fund = $("#" + idStart + indexs[i]).val();
		if (!$.isNumeric(fund))
			fund = 0;
		count = parseInt(count) + parseInt(fund);
	}
	//add by cg 扩展：对于多个输入框所求得的和，同时赋给某几个文本框
	var totalStrArr = totalStr.split(",");
	var totalId;
	for(var i = 0;i < totalStrArr.length; i++ ) {
		totalId = totalStrArr[i];
	$("#" + idStart + totalId).val(count);
	}
}
</script>

